package net.xdclass.demoproject.Callback;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class Store {
 public boolean order(String name, shopping shoppingCallback) throws InterruptedException {
     System.out.println("---start query store");
     Thread.sleep(3000);
     System.out.println("可以发货");
     shoppingCallback.success("衣服","100");
     return true;
 }
}
